package com.xuecheng.teaching.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.comment.model.dto.CommentDTO;
import com.xuecheng.api.comment.model.vo.CommentVO;
import com.xuecheng.api.teaching.model.dto.CompanyDTO;
import com.xuecheng.api.teaching.model.qo.QueryCompanyModel;
import com.xuecheng.api.teaching.model.vo.CompanyVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.teaching.entity.Company;

/**
 * 教育机构 服务类
 */
public interface CompanyService extends IService<Company> {

    /**
     * 根据租户ID获取机构信息
     * @param tenantId
     * @return
     */
    CompanyDTO getByTenantId(Long tenantId);



    /**
     *评论管理新增评论
     * @param
     * @param
     * @return
     */
    CommentDTO createComment(CommentVO vo, Long companyId, String username);

    

    PageVO pageQuery(PageRequestParams params, QueryCompanyModel model);

    RestResponse saveCompany(CompanyVO companyVO);
}
